<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" errorPage="/commons/errorpage/500.jsp"%>
<%@ include file="/commons/comm_const_tag.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
  <head>
	<title>用户信息 - ${appTitle}</title>
    <%@ include file="/commons/comm_css_js.jsp" %>
    <script type="text/javascript">
		var isSuper = false;
    	<sec:authorize access="hasRole('ROLE_SUPER_ADMIN')">isSuper = true;</sec:authorize>
    </script>
    <script type="text/javascript" src="${contextPath}/userinfo/js/user_info_list.js?_v=${rsVer}"></script>  
  </head>

  <body>
  	<%@ include file="/commons/comm_page_header.jsp"%>
  	<div id="queryPanel" class="queryContainer" style="display: none;">
		<form id="query_form" class="threeForm">
			<table>
				<tr>
					<td class="label">登录名称</td>
					<td class="data"><input type="text"  id="username" class="validate-alphanum max-length-20" ></td>
					<!--  
					<td class="label">用户名</td>
					<td class="data"><input type="text"  id="name" class="max-length-20" ></td>
					-->
					<td class="label">用户状态：</td>
					<td class="data">
						<select id="status">
							<option value="">全部</option>
							<option value="0">启用</option>
							<option value="1">禁用</option>
							<option value="9">弃用</option>
						</select>
					</td>
					<td class="label"></td>
					<td class="data"></td>
					<!-- <td class="button"><input type="submit" value="查询"> -->
		 		</tr>
			</table>
		</form>
	</div>
	<table border="0" cellpadding="0" cellspacing="0">
		<tbody>
			<tr>			
				<td class="gridTd"  valign="top">
						<table id="userinfo"></table>
						<div id="userinfoMask"></div>
				</td>
			</tr>
		</tbody>
	</table>
	
	<div id="edit_dialog" style="display: none;">
		<form id="userinfo_from" class="doubleForm" method="post">
			<table align="center">
					<tr>
						<td class="label"><span class="impt">*</span>登录名称：</td>
						<td class="data"><input type="text" name="userName" id="usernameEdit"></td>
						<td class="label"><span class="impt">*</span>用户名：</td>
						<td class="data"><input type="text" name="name" id="nameEdit"></td>
					</tr>
					<tr>
						<td class="label">年龄：</td>
						<td class="data"><input type="text" name="age" id="ageEdit"></td>
						<td class="label">e-mail：</td>
						<td class="data"><input type="text" name="email" id="emailEdit"></td>
					</tr>
				</table>
			<input type="hidden" name="id" id="id">
		</form>
	</div>
	
	<div id="authorize_dialog" style="display:none;">
		<table align="center">
			<tr>	
				<td>
					<form id="authorize_form">
						<table>
								<tr>
									<td class="label">登录名称</td>
									<td class="data"><span id="usernameSpan"></span></td>
									<td class="label">用户状态</td>
									<td class="data"><span id="statusSpan"></span></td>
								</tr>
								<tr>
									<td class="label">已有角色</td>
									<td class="data resetWidth" colspan="3"><span id="choosedRolesSpan"></span></td>
								</tr>
								<tr>	
									<td colspan="1" class="label"><span class="impt">*</span>选择角色</td>
									<td class="data"></td>
									<td class="label"></td>
									<td class="data"></td>
								</tr>
						</table>
					</form>
				</td>
			</tr>
			<tr>	
				<td><table id="roleList"></table></td>
			</tr>
		</table>
	</div>
  </body>
</html>
